{% extends "base.volt" %}

{% block pageFooter%}
    {{ javascript_include("/assets/manage/js/bp/addTag.js", false) }}
{% endblock %}

{% block content %}
    {{ partial("module/left_bp") }}
<div class="col-xs-10">
    <ol class="breadcrumb">
        <li><a href="{{ url.get('bp/list') }}">美容院</a></li>
        <li><a href="{{ url.get('bptag/list') }}">美容院标签管理</a></li>
        <li class="active">添加美容院标签</li>
    </ol>
    <form id="form_add" class="form-horizontal" role="form" method="post" action="" target="ifr_send_file" enctype="multipart/form-data" durl="{{ url.get('bptag/list') }}">
        <input type="hidden" name="callback" value="parent.formResult" >
        <div class="form-group">
            <label for="tag_name" class="col-xs-2 control-label">上级</label>
            <div class="col-xs-9">
            	<select name="parent_id" class="form-control">
            		<option value="0">无</option>
            		{% for r in list %}
            			<option value="{{ r.tag_id }}">{{ r.tag_title}}</option>
            		{% endfor %}
            	</select>
            </div>
        </div>
        <div class="form-group">
            <label for="tag_name" class="col-xs-2 control-label">名称</label>
            <div class="col-xs-9">
                <input type="text" class="form-control" id="tag_name" name="tag_name" data-rule="required;length[~5]">
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-offset-2 col-xs-10">
                <button type="submit" class="btn btn-primary"><i class="fa fa-floppy-o fa-lg"></i> 保 存</button>
            </div>
        </div>
    </form>
</div>
{% endblock %}